package com.cloudloan.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <h3>cloudLoan</h3>
 * <p>书籍</p>
 *
 * @author gdw
 * @since 2024-08-26 11:14:36
 */
@TableName("book")
@Data
@Builder
public class Book implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    private Long id;
    /**
     * 标题
     */
    private String title;
    /**
     * 作者
     */
    private String author;
    /**
     * 简介
     */
    private String introduction;
    /**
     * 日期
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate date;
    /**
     * 分类
     */
    private Integer type;
    /**
     * 图片
     */
    private String image;
    /**
     * 上传时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitTime;

}
